package base.thread.pool.c2;

import junit.framework.TestCase;

/**
 * @author <a href="mailto:huangfengjing@gmail.com">Ivan</a>
 */
public class TestThreadPoolManager extends TestCase {

	public void testManager() throws Exception {
		ThreadPoolManager pool = new ThreadPoolManager();
		for (int i = 0; i < 100; i++) {
			pool.addTask(new SimpleTask(i));
		}
		Thread.sleep(1000 * 10);
		pool.shutDown();
	}

}
